<html>

<head>
    <meta name="" content="utf-8">
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=0" />
    <script>

    </script>
    <style id="contentId">
        .box {
            /* 相对定位，会对于子集，相对定位，产生影响 */
            display: block;
            position: relative;
            width: 200px;
            border: solid 1px #0e0e0e;
        }

        .item0 {
            position: static;
            height: 100px;
            width: 100px;
            background-color: red;
        }

        .item1 {
            /* 相对定位，相对于，原本的普通文档流中的位置变化 */
            position: relative;
            top: 10px;
            left: 10px;
            height: 100px;
            width: 100px;
            background-color: green;
        }

        .item2 {
            /* 绝对定位，脱离普通文档流 */
            position: absolute;
            top: 10px;
            left: 10px;
            height: 100px;
            width: 100px;
            background-color: yellow;
        }
        /**********************/

        .box1 {
            width: 200;
            border: solid 1px;
            background-color: royalblue;
        }

        .item00 {

            width: 100px;
            height: 100px;
            background-color: red;
        }

        .item11 {
            height: 100px;
            width: 100px;
            background-color: green;
            position: fixed;
            bottom: 20px;
            left: 20px;
        }

        .item22 {
            height: 100px;
            width: 100px;
            background-color: yellow;
        }
    </style>
    <title>王者荣耀</title>

</head>

<body>

    <div>display 默认 block；position absolute,relative,flexed</div>
</p>
    <div>文档流 absolute:绝对定位，脱离普通文档流；</p>
        relative:相对定位，会对于子集，相对定位，产生影响</div>
    <div class="box">
        <div class="item0">默认position:static</div>
        <div class="item1">相对定位，相对于，原本的普通文档流中的位置变化</div>
        <div class="item2"> /* 绝对定位，脱离普通文档流 */</div>
    </div>
    <div>固定定位 flexed</div>
    <div class="box1">
        <div class="item00"></div>
        <div class="item11">固定定位 flexed</div>
        <div class="item22"></div>
    </div>
</body>

</html>